function c = selectOneBlock2(inpath)
    img = jpeg_read(inpath);
    coef = img.coef_arrays{1};
    [M,N]=size(coef);
    c = zeros(M*N/64,64);
    count = 1;
    for dx = 1:M/8
        for dy = 1:N/8
            p = coef((dx*8-7):(dx*8),(dy*8-7:dy*8));
            zp = zigzag(p);
            c(count,:) = zp(1,:);
            count = count + 1;
        end
    end
end
